﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Channels;

namespace suanpan.API.Components.Encoders
{
    public class JsonpMessageEncoderFactory : MessageEncoderFactory
    {
        JsonpEncoder _encoder;
        public JsonpMessageEncoderFactory()
        {
            _encoder = new JsonpEncoder();
        }

        public override MessageEncoder Encoder
        {
            get
            {
                return _encoder;
            }
        }

        public override MessageVersion MessageVersion
        {
            get { return _encoder.MessageVersion; }
        }
    }
}
